const app = getApp()

Page({
  data: {

  },
  onLoad: function () {
    console.log('Welcome to Mini Code')
  },
  login() {
    tt.login({
      force: true,
      success(res) {
        console.log(`login 调用成功${res.code} ${res.anonymousCode}`);
        tt.showToast({
          title: "登录成功"
        });
      },
      fail(res) {
        console.log(`login 调用失败`);
      },
    });

    
  }
})
